.action-card {
  position: relative;
  display: block;
  padding: $gl-spacing-scale-5;
  border-radius: $gl-border-radius-base;
  @apply gl-bg-default;
  @apply gl-border;

  .action-card-title {
    display: flex;
    align-items: center;
    gap: $gl-spacing-scale-2;
    font-weight: $gl-font-weight-bold;
    text-wrap: balance;

    // stylelint-disable-next-line gitlab/no-gl-class
    &:is(.gl-link):not(:hover) {
      @apply gl-text-default;
    }

    // stylelint-disable-next-line gitlab/no-gl-class
    &:is(.gl-link) {
      transition: color .2s cubic-bezier(0.22, 0.61, 0.36, 1);

      &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
      }
    }
  }

  .action-card-arrow {
    opacity: 0;
    translate: -$gl-spacing-scale-2;
    transition: opacity .2s cubic-bezier(0.22, 0.61, 0.36, 1),
          translate .2s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .action-card-text {
    margin-bottom: 0;
    margin-top: $gl-spacing-scale-2;
    text-wrap: balance;
  }

  .action-card-controls:not(:empty) {
    margin-top: $gl-spacing-scale-4;
  }
}

.action-card-title:hover .action-card-arrow {
  opacity: 1;
  translate: 0;
}

@media (prefers-reduced-motion: reduce) {
  .action-card-title, .action-card-arrow {
    transition-duration: .01ms !important;
  }
}
